package net.viralpatel.struts2;

import java.sql.SQLException;

import com.opensymphony.xwork2.ActionSupport;

public class ChangeProfileSucAction extends ActionSupport{
	
	private String username;
	private String name;
	private String email;
	private String telephone;
	private String company;
	JDBCQuery jdbc;
	public String execute()
	{
		try {
			jdbc=new JDBCQuery();
			jdbc.updateProfile(username, name, email, telephone, company);
			
		} catch (ClassNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		return ActionSupport.SUCCESS;
	}
	
	
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}


	public String getTelephone() {
		return telephone;
	}


	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}


	public String getCompany() {
		return company;
	}


	public void setCompany(String company) {
		this.company = company;
	}

	

}
